package com.nbjtjc.common.bean;

public enum RECORDSTATUSENUM {
    SAVE("暂时保存",0) ,SUBMIT("提交记录",1),MEASURE("制定措施",2)
    ,REFORM("整改",3),ACCEPT("验收",4)
    ,FINISH("已验收",5),ACTIVE("",9),UNACTIVE("",10),UNAPPLY("不符合",11),;
    private String name;
    private Integer code;
    public static String getName(Integer code){
        for(RECORDSTATUSENUM recordStatus : RECORDSTATUSENUM.values()){
            if(recordStatus.getCode().equals(code)){
                return recordStatus.getName();
            }
        }
        return "";
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    RECORDSTATUSENUM(String name, Integer code) {
        this.name = name;
        this.code = code;
    }
}
